Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(radio): fix inverted source causing EM on PlayValue SF trigger #5968

Merged
merged 3 commits into from
Mar 9, 2025

Conversation

pfeerick
Copy link
Member

@pfeerick pfeerick commented Mar 5, 2025

Fixes #5955, alternative to #5963

Summary of changes:

  • change from uint16_t to int32_t data type, since we are getting a signed (negative) value also now
  • preserve sign for source/value when needed, otherwise strip it to allow conditional processing to continue to work "normally"

Prior to this, it was going into the if (idx >= MIXSRC_FIRST_TELEM) branch for sources such as Inv Thr, since (using example of Inv Thr) idx was 65535, not -1... 🤭

@pfeerick pfeerick added bug/regression ↩️ A new version of EdgeTX broke something firmware General radio firmware issue, not colorlcd or B&W specific labels Mar 5, 2025
@pfeerick pfeerick added this to the 2.11 milestone Mar 5, 2025
@pfeerick
Copy link
Member Author

pfeerick commented Mar 6, 2025

Have now tested both normal and inverted Inputs, Mixes, a switch, a GV, a channel, MIN, Time, Batt, long and short timers, and some telemetry values on T15. No EMs, and correctly stating normal or inverted readings as relevant.

@pfeerick pfeerick added the em Emergency Mode trigger label Mar 6, 2025
@OpenUAS
Copy link

OpenUAS commented Mar 7, 2025

@pfeerick Awesome 🎇 , Thx.

@pfeerick pfeerick merged commit b173eb6 into main Mar 9, 2025
51 checks passed
@pfeerick pfeerick deleted the pfeerick/fix-invsrc-playvalue-em branch March 9, 2025 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/regression ↩️ A new version of EdgeTX broke something em Emergency Mode trigger firmware General radio firmware issue, not colorlcd or B&W specific
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Emergency mode on playing inverted value
2 participants